package com.sc.nft.entity.dto;


import com.sc.nft.enums.PayMethodEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class NotiftPayDTO {

    @ApiModelProperty("支付方式")
    @NotNull(message = "支付方式不能为空")
    public PayMethodEnum payMethod;


    @ApiModelProperty("支付金额")
    @NotNull(message = "支付金额不能为空")
    public BigDecimal amount;

    @ApiModelProperty("订单编号")
    @NotBlank(message = "订单编号不能为空")
    public String orderNo;

    @ApiModelProperty("结束时间（默认半小时）")
    public Date closeTime;
}
